﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqliteDAL.Model
{
    /// <summary>
    /// 试剂管理    一条6孔，有6列    共36个位置
    /// </summary>
    [Table("T_Reagents")]
    public class Reagents : BasePositionModel
    {
        private double maxCapacity;
        public double MaxCapacity
        {
            get { return maxCapacity; }
            set { SetProperty(ref maxCapacity, value); }
        }
        private double currentCapacity;
        public double CurrentCapacity
        {
            get { return currentCapacity; }
            set { SetProperty(ref currentCapacity, value); }
        }
        public string Manufacturer { get; set; } = string.Empty;//试剂厂家
        public string ReagentType { get; set; } = string.Empty;//试剂类型
        public string ProjectName { get; set; } = string.Empty;//项目名称、编号



        /// <summary>
        /// 试剂类型
        /// </summary>
        [NotMapped]
        public ObservableCollection<DataDictinarys> DataDictinaryList { get; set; }
        /// <summary>
        /// 选中的试剂类型
        /// </summary>
        [NotMapped]
        private DataDictinarys selectReagentType;
        /// <summary>
        /// 选中试剂
        /// </summary>
        [NotMapped]
        public DataDictinarys SelectReagentType
        {
            get => selectReagentType;
            set
            {
                SetProperty(ref selectReagentType, value);
                this.ReagentType = value.Name;
            }
        }
    }
}
